<?php
	$host = '0.0.0.0';
	$port = 8080;	
	$serv = new swoole_http_server($host, $port);

	/**
	 * 获取请求
	 */
	$serv->on('request', function($request, $response){
		var_dump($request);
		$response->header("Content-Type", "text/html; chartset=utf-8");
		$response->end("hellow world" . rand(1000, 9999));
	});

	$serv->start();
